package com.tuling.designpattern.observer;

/**
 * @author 林瑞涛
 * @desc  测试类
 * @date 2021年08月05日 14:07
 */
public class Client {
    public static void main(String[] args) {
        Subject subject = new ConcreteSubject();
        Observer observer1 = new ConcreteObserver1();
        Observer observer2 = new ConcreteObserver2();
        subject.add(observer1);
        subject.add(observer2);
        subject.notifyObserver();
    }
}
